"""
@file:   response
@author: FrankYi
@date:   2020/08/14
@desc:
"""

from libs.statuscode import Success
def genrate_response(data=None, message=Success.message, status_code=Success.status_code, **kwargs):
    if data is None:
        data = []
    return {
        "data": data,
        "message": message,
        "status_code": status_code,
        **kwargs
    }